<template>
  <div>
    <base-table :fields="fields" baseURL="/api/creater" :api="api" :isDefaultBtn="false">
      <template slot="action" slot-scope="data">
        <el-button size="small" type="primary">生成</el-button>
      </template>
    </base-table>
  </div>
</template>

<script>
export default {
  data () {
    return {
      fields: [
        {
          field: 'tableName',
          name: '表名'
        },
        {
          field: 'tableComment',
          name: '表名'
        },
        {
          field: 'action',
          name: '操作',
          slot: 'action'
        }
      ],
      api: {
        'save': '/save',
        'delete': '/delete',
        'update': '/update',
        'query': '/getTables'
      }
    }
  },

  methods: {}
}

</script>
